/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-01-31 15:43:06
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-21 18:49:44
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('resourceAdmin.area.areaCode'),
    minWidth: 180,
    width: 'auto',
    prop: 'id',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.area.name'),
    minWidth: 180,
    width: 'auto',
    prop: 'areaName',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.area.state'),
    minWidth: 120,
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('resourceAdmin.area.areaLevel'),
    width: 'auto',
    prop: 'areaLevel'
  },
  {
    label: i18n.t('resourceAdmin.area.creatTime'),
    width: 'auto',
    minWidth: 160,
    prop: 'createTime'
  }
]

export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:area:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:area:delete'
  }
]
